package com.wj.constant;

import lombok.Getter;

/**
 * @description 响应信息枚举类，定义了各种响应类的状态码和基本信息
 */
public enum ResponseInfoEnum {

    /**
     * 通用错误信息处理部分
     */
    SUCCESS(200, "成功"),
    FAIL(400, "失败"),
    NO_LOGIN(401, "未登录"),
    NO_PERMISSION(403, "无权限"),
    NOT_FOUND(404, "未找到"),
    SERVER_ERROR(500, "服务器错误"),
    PARAM_ERROR(600, "参数错误"),
    ;


    @Getter
    private final int code;
    @Getter
    private final String message;

    ResponseInfoEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
